home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_libgtop.idb / usr / freeware / bin / libgtop-config.z / libgtop-config
Text File  |  2002-07-08  |  868b  |  47 lines

  1. #!/bin/sh
  2.  
  3. usage="\
  4. Usage: libgtop-config [--version] [--config] [--features-def-file] [--cflags] [--libs] [--extra-libs]"
  5.  
  6. config_file="${ROOT}/usr/freeware/${ABILIB-lib32}/libgtopConf.sh"
  7. . $config_file
  8.  
  9. features_def_file="${ROOT}/usr/freeware/${ABILIB-lib32}/libgtop-features.def"
  10.  
  11. if test $# -eq 0; then
  12.       echo "${usage}" 1>&2
  13.       exit 1
  14. fi
  15.  
  16. while test $# -gt 0; do
  17.   case "$1" in
  18.   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  19.   *) optarg= ;;
  20.   esac
  21.  
  22.   case $1 in
  23.     --version)
  24.       echo $LIBGTOP_VERSION
  25.       ;;
  26.     --config)
  27.       echo $config_file
  28.       ;;
  29.     --features-def-file)
  30.       echo $features_def_file
  31.       ;;
  32.     --cflags)
  33.       echo $LIBGTOP_INCS
  34.       ;;
  35.     --libs)
  36.       echo $LIBGTOP_LIBS
  37.       ;;
  38.     --extra-libs)
  39.       echo $LIBGTOP_EXTRA_LIBS
  40.       ;;
  41.     *)
  42.       echo "${usage}" 1>&2
  43.       exit 1
  44.   esac
  45.   shift
  46. done
  47.